import request from '@/utils/request'
export default{
    getList() {
        return request({
            url: `/classify/list`,
            method: 'get'
        })
    },
    addOneClassify(title){
        return request({
            url: `/classify/addOneClassify`,
            method: 'post',
            params: { 
                title
             }
        })
    },
    addTwoClassify(parentId,title){
        return request({
            url: `/classify/addTwoClassify`,
            method: 'post',
            params: { 
                parentId,
                title
             }
        })
    },
    deletTwoClassify(title){
        return request({
            url: `/classify/removeTwoClassify`,
            method: 'delete',
            params: { 
                title
             }
        })
    },
    deletOneClassify(title){
        return request({
            url: `/classify/removeOneClassify`,
            method: 'delete',
            params: { 
                title
             }
        })
    }
}